package com.zzdx.deployment.framework.config;

import org.apache.shiro.authc.HostAuthenticationToken;
import org.apache.shiro.authc.RememberMeAuthenticationToken;

public class SmsToken implements HostAuthenticationToken, RememberMeAuthenticationToken {
    private String phone_num;
    private String phone_code;

    public String getPhone_num(){
        return phone_num;
    }
    public String getPhone_code(){
        return phone_code;
    }
    private boolean isChecked=false;
    public SmsToken(String phone_num, String phone_code,boolean isChecked) {
        this.phone_num = phone_num;
        this.phone_code = phone_code;
        this.isChecked =true;
    }


    @Override
    public String getHost() {
        return null;
    }

    @Override
    public boolean isRememberMe() {
        return false;
    }

    @Override
    public Object getPrincipal() {
        return phone_num;
    }

    @Override
    public Object getCredentials() {
        return phone_code;
    }
    public boolean isChecked(){
        return isChecked;
    };
}
